import React from "react"
import "../css/Body.css"
import gongsi from "../component/gongsi"
import guanli from "../component/guanli"
import wenhua from "../component/wenhua"
import fazhan from "../component/fazhan"
import xinwen from "../component/xinwen"
import jiaru from "../component/jiaru"
import touzi from "../component/touzi"
import lianxi from "../component/lianxi"
import {
    HashRouter,
    Switch,
    Route,
    Link,
} from "react-router-dom";
class Body extends React.Component {
    render() {
        return (
            <HashRouter>
                <div>
                    <div className="body_box">
                        <div className="body_flex">
                            <div><Link to="/">公司简介</Link></div>
                            <div><Link to="/guanli">管理团队</Link></div>
                            <div><Link to="/wenhua">小米文化</Link></div>
                            <div><Link to="/fazhan">发展经历</Link></div>
                            <div><Link to="/xinwen">小米新闻</Link></div>
                            <div><Link to="/jiaru">加入小米</Link></div>
                            <div><Link to="/touzi">投资者关系</Link></div>
                            <div><Link to="/lianxi">联系我们</Link></div>
                        </div>
                        <div>
                            <Switch>

                                <Route path="/guanli" component={guanli} />
                                <Route path="/wenhua" component={wenhua} />
                                <Route path="/fazhan" component={fazhan} />
                                <Route path="/xinwen" component={xinwen} />
                                <Route path="/jiaru" component={jiaru} />
                                <Route path="/touzi" component={touzi} />
                                <Route path="/lianxi" component={lianxi} />
                                <Route path="/" component={gongsi} />
                            </Switch>
                        </div>
                    </div>
                </div>
            </HashRouter>
        )
    }
}
export default Body;